package com;

public class User {
    private String name;

    public User(){
        System.out.println("user的无参构造器");
    }

    public User(String name){
        this.name  = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void toShow(){
        System.out.println("name=="+name);
    }
}
